@echo OFF

rem ===============================================
rem === init

if NOT EXIST obj md obj
if NOT EXIST obj\8200000100.TXT copy ..\Src\8200000100.TXT obj
if NOT EXIST obj\8200000100.M30 copy ..\Src\8200000100.M30 obj
if NOT EXIST obj\8200000100.M31 copy ..\Src\8200000100.M30 obj\8200000100.M31

rem ===============================================
rem === Build

"C:\Program Files\Microsoft Visual Studio\VC98\Bin\nmake.exe" Makefile.gnu

rem ===============================================
rem === if mockup 
rem 	8200000100.bin is copy as 8200000100.sgn
rem 	8200000100.TXT is copy as 8200000100.ADF

copy obj\8200000100.BIN obj\8200000100.SGN
copy obj\8200000100.TXT obj\8200000100.ADF

PAUSE